package com.sora.sora.common.model.param;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class ArticleParam {

//    @Min(value = 1, message = "文章不存在", groups = UpdateArticle.class)
//    private int id;

    @NotBlank(message = "作者不存在")
    private String author;

    @NotBlank(message = "文章标题不能为空")
    private String title;

    @NotBlank(message = "文章内容不能为空")
    private String content;

    public interface CreateArticle {}

}
